package com.imooc.product.service;

import com.imooc.product.dto.CartDTO;
import com.imooc.product.dataobject.ProductInfo;

import java.util.List;

/**
 * 商品
 * Created by 廖师兄
 * 2017-05-09 17:27
 */
public interface ProductService {

    /**
     * 查询所有在架商品
      * @return
     */
    List<ProductInfo> findUpAll();

    List<ProductInfo> findList(List<String> productIdList);

    void decreaseStock(List<CartDTO> cartDTOList);
}
